import {createRouter,createWebHashHistory} from 'vue-router'
import Home from '../views/Home.vue'
import SongList from '../views/SongList.vue'
import Singer from '../views/Singer.vue'
import MyMusic from '../views/MyMusic.vue'
import Search from '../views/Search.vue'
import Player from '../views/Player.vue'
const routes = [
    {path:'/',redirect:'/home'},
    {path:'/home',component:Home},
    { path: '/songlist', component: SongList },
    { path: '/singer', component: Singer },
    { path: '/mymusic', component: MyMusic },
    { path: '/search', component: Search },
    { path: '/play', component: Player },
]

const router = createRouter({
    history:createWebHashHistory("/"),
    routes
})

export default router;